<?php
$this->pageTitle=Yii::app()->name . ' - About';
$this->breadcrumbs=array(
	'About',
);
//echo Yii::app()->user->getId();
echo time();
?>
<style>
	#feedback { font-size: 1.4em; }
	#selectable .ui-selecting { background: #FECA40; }
	#selectable .ui-selected { background: #F39814; color: white; }
	#selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
	#selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
	
	</style>
<h1>About</h1>
<div id="fb-root"></div>
<script>
  // Additional JS functions here
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '311810492267056', // App ID
	  secret	 : 'a478782bb5377690aaf1bc737fd93524', 
      //channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });

    // Additional init code here
	
  };

  // Load the SDK Asynchronously
 (function(d){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     ref.parentNode.insertBefore(js, ref);
   }(document)); 
   
   function login() {
    FB.login(function(response) {
        if (response.authResponse) {
            // connected
			alert('connected');
        } else {
            // cancelled
			alert('cancelled');
        }
    });
}

function testAPI() {
    console.log('Welcome!  Fetching your information.... ');
    FB.api('/me', function(response) {
        console.log('Good to see you, ' + response.name + '.');
    });
}
</script>
  <script src="//connect.facebook.net/en_US/all.js"></script>
<p>This is a "static" page. You may change the content of this page
by updating the file <tt><?php echo __FILE__; ?></tt>.</p>
<input type="text" id="st_date" name="st_date" value="<?php echo date("Y-m-d");
Yii::app()->clientScript->registerScriptFile('/script/jquery-1.8.2.min.js', CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile('/script/jquery-ui-1.8.24.custom.min.js', CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScript('data',"
$(document).ready(function(){
$('#st_date').datepicker();

$( '#selectable' ).selectable();

});



",CClientScript::POS_HEAD);?>"/>


<div class="demo">

<ol id="selectable">
	<li class="ui-widget-content">Item 1</li>
	<li class="ui-widget-content">Item 2</li>
	<li class="ui-widget-content">Item 3</li>
	<li class="ui-widget-content">Item 4</li>
	<li class="ui-widget-content">Item 5</li>
	<li class="ui-widget-content">Item 6</li>
	<li class="ui-widget-content">Item 7</li>
</ol>

</div><!-- End demo -->